Release 10.1A: OpenEdge Development:
ADM Reference
getpropname and setpropname functions
Every public-readable property must have a function defined to return the current value of the property. Similarly, every public-writable property must have a function defined to set a new value for the property. These functions conform to certain conventions:
get— Thegetfunction identifier takes the formgetpropname. The function accepts no arguments, and returns the current value of the property. It can also perform other processing, if needed.set— Thesetfunction identifier takes the formsetpropname. It accepts a single argument—the new value for the property—and returns TRUE/FALSE depending on whether it succeeded in changing the value. It can perform additional processing, if needed.A very small number of these functions vary slightly from the model described here, but these differences are not significant.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |